//
//  Tool.h
//  WebSocke
//
//  Created by ebeijia.com on 16/8/26.
//  Copyright © 2016年. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface JSTool : NSObject

+(NSString *)jsonStrFrom:(id)obj;

+(NSDictionary *)jsonDicFrom:(NSData *)data;
+(NSDictionary *)dicWithJsonString:(NSString *)jsonString;

+(NSArray *)jsonArrFrom:(NSData *)data;

+(NSData *)jsonDataFromDic:(NSDictionary *)dic;
+(NSData *)jsonDataFromArr:(NSArray *)arr;


@end

